package com.lnw.sys.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.apache.ibatis.type.Alias;

/**
 * <p>
 * 
 * </p>
 *
 * @author 刘乃伟
 * @since 2021-03-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_permission")
@ApiModel(value="Permission对象", description="")
public class Permission implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer pid;

        @ApiModelProperty(value = "权限类型[menu/permission]")
        private String type;

        @JsonProperty("name")
    private String title;

        @ApiModelProperty(value = "权限编码[只有type= permission才有  user:view]")
        private String percode;

    private String icon;

    private String href;

    private String target;


    private Integer open;

    private Integer ordernum;

        @ApiModelProperty(value = "状态【0不可用1可用】")
        @JsonProperty("spread")
        private Integer available;


}
